home *** CD-ROM | disk | FTP | other *** search
- includeh ls_ppc_macros.def *the macros we need
- includeh general_usage.def *some handy definitions
- **Beginners guide to PowerPC assembly language.
- **Example 3 - big loop with floating add instruction.
- **(C) Lightsoft 1996.
- **Program to loop.
- start_up *the start_up macro as detailed above - sets up the toc etc
- lis r3,0x0fff *load fff into upper 16 bits of r3, replaces above two lines
- mtctr r3
- loop: nop
- fadd f1,f2,f3 *this time we do some floating maths as well
- bdnz loop
- tidy_up *clear up processors registers and get ready to exit
- blr *back to system.
-